package com.itheima.health.service.impl;

import com.itheima.health.dao.MemberDao;
import com.itheima.health.entity.MemberDto;
import com.itheima.health.pojo.Member;
import com.itheima.health.service.MemberService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

@Service
public class MemberServiceImpl implements MemberService {

    @Autowired
    private MemberDao memberDao;


    @Override
    public void insert(Member member) {
        memberDao.insert(member);
    }

    @Override
    public Member findByCondition(Member member) {
        return memberDao.findByCondition(member);
    }

    @Override
    public Integer getIdByCondition(MemberDto memberDto) {
        return memberDao.getIdByCondition(memberDto);
    }
}
